<%@ page import="java.util.ArrayList" %>
<%@ page import="entity.Teacher812" %><%--
  Created by IntelliJ IDEA.
  User: wang'ze'liang
  Date: 2021/8/14
  Time: 9:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <form action="<%=request.getContextPath()%>/student813?method=insert" method="post">
        学生姓名： <input type="text" name="studentName" /><br/>
        学生年龄： <input type="text" name="studentAge"/><br/>
        学生性别： <input type="text" name="studentGender"/><br/>
        班级Id：  <input type="text" name="banJiId"/><br/>
        授课教师Id： <select name="teacherId">
        <%
            ArrayList<Teacher812> arrayList = (ArrayList<Teacher812>) request.getAttribute("T812");
            for (Teacher812 teacher812 : arrayList){
        %>
        <option value="<%=teacher812.getTeacherId()%>"><%=teacher812.getTeacherName()%></option>
        <%
            }
        %>
    </select>

        <input type="submit" value="添加"/>
    </form>

</body>
</html>
